<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0,viewport-fit=cover">
<title></title> {include file="common/pub_style" /}
<script type="text/javascript">
	var timer = 60;
	var interval;
	var lock = 0;
	function clock() {
		var newvalue = timer + 's';
		timer--;
		if (timer < 0) {
			$(".btnsms").removeClass("disabled");
			$(".btnsms").val("{$Think.lang.get_verify_code}");
			lock = 0;
			clearInterval(interval);
		} else
			$(".btnsms").val(newvalue);
	}
	$(document).ready(function() {
		isformnull();
		$(".btnsms").click(function() {
			var that = this;
			if (lock == 0) {
				$.ajax({
					type : 'post',
					url : "{:url('getcode')}",
					dataType : "json",
					data : $("form").serialize(),
					success : function(res) {
						layer.msg(res.msg);
						if (res.code == 99) {
							lock = 1;
							$(that).addClass("disabled");
							interval = setInterval("clock()", 1000)
						} else {
							lock = 0;
							//fleshVerify();
						}
					}
				});
			}
		})
		$(".login-btn").click(function() {
			if (getformnull() == 0) {
				$("#loadingToast").show();
				$.ajax({
					type : 'post',
					url : "",
					dataType : "json",
					data : $("form").serialize(),
					success : function(res) {
						layer.msg(res.msg);
						if (res.code == 99) {
							$("form").get(0).reset();
							gourl('-1', 'back');
						}
						$("#loadingToast").hide();
					}
				});
			}
		})
	})
</script>
</head>
<body>
	<div class="header-wrap">
		<div class="flex flex-between pd10">
			<div class="left-arrow" onclick="javascript:window.history.go(-1);"></div>
			<div class="">{$Think.lang.edit_email}</div>
			<div class=""></div>
		</div>
	</div>
	<div style="height: 70px"></div>
	<div class=" pd20">
		<form id="login-form" class="form-horizontal" action="" method="post">
			<input type="hidden" name="type" value="{$Request.param.type}">
			<div class="form-row flex align-center">
				<div class="title label-md">{$Think.lang.email}:</div>
				<div class="input-box">
					<input type="text" name="email" class="input-text" placeholder="{$Think.lang.input_email_tip}">
				</div>
			</div>
			<div class="form-row flex align-center">
				<div class="title label-md">{$Think.lang.email}:</div>
				<div class="input-box">
					<input type="text" name="newemail" class="input-text" placeholder="{$Think.lang.input_email_tip1}">
				</div>
			</div>
			<div class="form-row flex align-center">
				<div class="title label-md">{$Think.lang.paypwd_title}:</div>
				<div class="input-box">
					<input type="password" name="paypwd" class="input-text" placeholder="{$Think.lang.input_paypwd_tips}">
				</div>
			</div>
			<!--<div class="form-row flex align-center">
				<div class="title label-md">{$Think.lang.verify_code}</div>
				<div class="input-box">
					<div class="flex">
						<input type="number" name="code" class="input-text" placeholder="{$Think.lang.input_verify_code_tip}">
						<div style="width: 90px;">
							<input type="button" class="btnsms" value="{$Think.lang.get_verify_code}">
						</div>
					</div>
				</div>
			</div>-->
			<div class="form-row">
				<button type="button" class="input-btn btnform btn-disabled login-btn undefined">
					<span class="btn-content"> <span>{$Think.lang.btn_confirm}</span></span>
				</button>
			</div>
		</form>
	</div>
	{include file="common/footer" /}
</body>
</html>